package com.dk.test;

import org.junit.Test;

public class Hello {

    public static void main(String[] args) {
        int i = 6;
        int b = 3;
//        int test = test(i);
//        System.out.println(test);
        int test1 = t(b);
        System.out.println(test1);
   }

    private static int test(int i){
        if (i <= 3){
            return i;
        }else {
            int test = test(i - 1);
            int test2 = test(i - 2);
            return test+test2;
        }
    }

    private static int t(int b){
        if (b < 2){
            return b;
        }else {
            return t(b - 1)+t(b - 2);
        }
    }

}
